package com.windoent.yugioh.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;

import com.windoent.yugioh.R;

/**
 * author : robert
 * date   : 2021/4/28 11:23
 * desc   :
 */
public class ActivityBackLeft extends RelativeLayout {
    private Context mConText;
    private LinearLayout llBack;


    public ActivityBackLeft(Context context) {
        this(context, null, 0);
    }

    public ActivityBackLeft(Context context, AttributeSet attrs) {
        this(context, attrs, 0);
    }

    public ActivityBackLeft(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        this.mConText = context;
        LayoutInflater.from(mConText).inflate(R.layout.custom_view_activity_back_left, this);
//        TypedArray attributes = mConText.obtainStyledAttributes(attrs, R.styleable.ActivityTitle, 0, 0);
        try {
        } finally {
//            attributes.recycle();
        }
        setUpView();
    }

    private void setUpView() {
        llBack = (LinearLayout) findViewById(R.id.ll_back);

    }

    public void setBackListener(OnClickListener listener) {
        llBack.setOnClickListener(listener);
    }
}
